"""
describe:项目的入口

"""

from flask_script import Manager
from flask_migrate import MigrateCommand, Migrate
from info import creat_app, db
from info import models


# 创建app,并选择配置模式
app = creat_app("dev")

# 使用脚本操作s
manager = Manager(app)

# 数据库迁移
migrate = Migrate(app, db)
manager.add_command('db', MigrateCommand)

if __name__ == "__main__":
    manager.run()
